package com.example.finalexamcovid_19situations;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class YvJiaReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // an Intent broadcast.
//        throw new UnsupportedOperationException("Not yet implemented");
        String str =intent.getExtras().getString("hello");
        yvJia.textView.setText("欢迎"+str+"使用新冠数据整和！");
    }
}